package com.kob.botruningsystem.service.impl;

import com.kob.botruningsystem.service.BotRuningService;
import com.kob.botruningsystem.service.impl.utils.BotPool;
import org.springframework.stereotype.Service;

@Service
public class BotRuningServiceImpl implements BotRuningService {

    public final static BotPool botpool = new BotPool();
    @Override
    public String addBot(Integer userId,Integer botId,String botCode, String input) {
//        System.out.println("add bot: " + userId);
        botpool.addBot(userId,botId,botCode, input);
        return "add bot success";
    }
}
